import { defineStore } from 'pinia'

export const useJobStore = defineStore('job', {
  state: () => ({
    // 基础占位，按需扩展
    jobs: [],
    currentJob: null
  }),
  actions: {
    setJobs(list) {
      this.jobs = Array.isArray(list) ? list : []
    },
    setCurrentJob(job) {
      this.currentJob = job || null
    }
  }
})